package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ScenicSpotIntroduceMapper;
import com.ruoyi.system.domain.ScenicSpotIntroduce;
import com.ruoyi.system.service.IScenicSpotIntroduceService;

/**
 * 景点介绍Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-09
 */
@Service
public class ScenicSpotIntroduceServiceImpl implements IScenicSpotIntroduceService 
{
    @Autowired
    private ScenicSpotIntroduceMapper scenicSpotIntroduceMapper;

    /**
     * 查询景点介绍
     * 
     * @param id 景点介绍主键
     * @return 景点介绍
     */
    @Override
    public ScenicSpotIntroduce selectScenicSpotIntroduceById(String id)
    {
        return scenicSpotIntroduceMapper.selectScenicSpotIntroduceById(id);
    }

    /**
     * 查询景点介绍列表
     * 
     * @param scenicSpotIntroduce 景点介绍
     * @return 景点介绍
     */
    @Override
    public List<ScenicSpotIntroduce> selectScenicSpotIntroduceList(ScenicSpotIntroduce scenicSpotIntroduce)
    {
        return scenicSpotIntroduceMapper.selectScenicSpotIntroduceList(scenicSpotIntroduce);
    }

    /**
     * 新增景点介绍
     * 
     * @param scenicSpotIntroduce 景点介绍
     * @return 结果
     */
    @Override
    public int insertScenicSpotIntroduce(ScenicSpotIntroduce scenicSpotIntroduce)
    {
        return scenicSpotIntroduceMapper.insertScenicSpotIntroduce(scenicSpotIntroduce);
    }

    /**
     * 修改景点介绍
     * 
     * @param scenicSpotIntroduce 景点介绍
     * @return 结果
     */
    @Override
    public int updateScenicSpotIntroduce(ScenicSpotIntroduce scenicSpotIntroduce)
    {
        return scenicSpotIntroduceMapper.updateScenicSpotIntroduce(scenicSpotIntroduce);
    }

    /**
     * 批量删除景点介绍
     * 
     * @param ids 需要删除的景点介绍主键
     * @return 结果
     */
    @Override
    public int deleteScenicSpotIntroduceByIds(String[] ids)
    {
        return scenicSpotIntroduceMapper.deleteScenicSpotIntroduceByIds(ids);
    }

    /**
     * 删除景点介绍信息
     * 
     * @param id 景点介绍主键
     * @return 结果
     */
    @Override
    public int deleteScenicSpotIntroduceById(String id)
    {
        return scenicSpotIntroduceMapper.deleteScenicSpotIntroduceById(id);
    }
}
